package com.testmanager.testmananger.practiseDemo.dataCreateProvide;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/yc/practise/mobile")
public class MobileResource {

    @Autowired
    MobileService mobileService;

    @PostMapping("/save")
    public ResponseEntity save(@RequestBody MobileEntity entity){
        return mobileService.save(entity);
    }


}
